package net.xiduth.game.player.content.actions;

import net.xiduth.game.player.Player;

/**
 * 
 * @author Jae
 * 
 * Vial ID: 731
 * 
 */
public class EnchantedVial {

	public static void handleEnchanting(Player player, int usedWith,
			int itemUsed) {
		if (!player.getInventory().containsItem(usedWith, 1)) {
			return;
		}
		if (!player.getInventory().containsItem(itemUsed, 1)) {
			return;
		}
		if (itemUsed == 731 && usedWith == 1333) {
			player.getInventory().deleteItem(usedWith, 1);
			player.getInventory().deleteItem(itemUsed, 1);
			player.getInventory().addItem(4587, 1);
			player.getPackets().sendGameMessage(
					"You enchant your Rune scimitar.");
		} else if (itemUsed == 731 && usedWith == 4151) {
			player.getInventory().deleteItem(itemUsed, 1);
			player.getInventory().deleteItem(usedWith, 1);
			player.getInventory().addItem(15443, 1);
			player.getPackets().sendGameMessage(
					"You enchant your Abyssal whip.");
		} else if (itemUsed == 731 && usedWith == 6585) {
			player.getInventory().deleteItem(itemUsed, 1);
			player.getInventory().deleteItem(usedWith, 1);
			player.getInventory().addItem(19335, 1);
			player.getPackets().sendGameMessage(
					"You enchant your Amulet of fury.");
		}
	}
}